<?php

class newsModel extends BaseControllers{

	public function listNews(){
		$action	= $this->req->getvar('action', 'test', 'POST');

		$Qry = 'SELECT * FROM news';
		$res = $this->db->query($Qry);

		echo $this->db->numRows($Qry);

		return $res;
	}
}